Skip to content

ci: a preview theme for each pull request of a Shopify theme, which Fulldev Sites shows - #36

Merged
silveltman merged 8 commits into
mainfrom
theme-preview
Nov 26, 2026
Merged

silveltman merged 8 commits into
mainfrom
theme-preview

Conversation

@silveltman

@silveltman silveltman commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Fulldev Sites shows each running version of a website with its preview, but a Shopify theme had no preview per pull request. This adds a reusable Theme preview workflow: each push to a pull request into the default branch mirrors the branch to an unpublished theme named #<number> <tag> <branch> (the tag is the repository's, and Sites's cms/ branches stay whole at the end, which its bar reads), reports the preview link as the commit status fulldev/theme-preview/<number>, which Sites reads, and closing the pull request or moving it off the default branch deletes the theme and takes the link away.

It only ever touches that pull request's theme (never a merchant's theme or another repository's preview on the same store, also after a rebase), reads the pull request as it is when each queued job runs, skips without the store or the secret, and pins Shopify CLI 5.0.0. Callers run it on pull_request_target, as GitHub skips pull_request workflows during a merge conflict; it only uploads a same-repository branch's files, never runs them.

Proved on the dev store fulldev-liquid-template-review through fulldotdev/liquid-template#18 and throwaway pull requests (#19, #20, #21, closed): a theme per pull request, reused on a new push and after a force-push, deleted on close with its link taken away. Merge this first; then #18 is pinned to the merge commit on main.

Created with Claude Opus 5.5 in Claude Code, reviewed by GPT Sol.

🤖 Generated with Claude Code

silveltman and others added 8 commits November 26, 2026 00:35
…ulldev Sites shows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…get, and pin Shopify CLI 5.0.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…an older one changes nothing

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd jobs queue

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ame, also after a rebase

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l the job, and no token skips

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… keeps its preview and loses it on close; the token is optional; a rerun takes a dead link away

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e header reads plainly

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silveltman
silveltman merged commit 5e6c927 into main Nov 26, 2026
3 checks passed
@silveltman
silveltman deleted the theme-preview branch November 26, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant